package jp.gnt.swf;

public class SWFUtils {

	public static final int maskInt = 0x000000FF;
	public static final long maskLong = 0x000000FFL;
	public static final int BUFFER_SIZE = 1024 * 4;

	public class TAG_CODE {
		public static final int TAG_END = 0;
		public static final int DEFINE_BITS = 6;
		public static final int DEFINE_BITS_LOSSLESS = 20;
		public static final int DEFINE_BITS_JPEG2 = 21;
		public static final int DEFINE_BITS_JPEG3 = 35;
		public static final int DEFINE_BITS_LOSSLESS2 = 36;
		public static final int DO_ACTION = 12;
		// more...
	}

	public class ACTION_CODE {
		public static final int ACTION_PUSH = 0x96;
		public static final int ACTION_POP = 0x17;
		public static final int ACTION_GET_VARIABLE = 0x1C;
		public static final int ACTION_SET_VARIABLE = 0x1D;
		public static final int ACTION_END = 0x00;
		// more...
	}

	public class DATA_TYPE {
		public static final int STRING = 0;
		public static final int FLOATING_POINT = 1;
		public static final int NULL = 2;
		public static final int UNDEFINED = 3;
		public static final int REGISTER = 4;
		public static final int BOOLEAN = 5;
		public static final int DOUBLE = 6;
		public static final int INTEGER = 7;
		public static final int CONSTANT8 = 8;
		public static final int CONSTANT9 = 9;
	}
}
